package orGitee;

import org.iherus.codegen.qrcode.SimpleQrcodeGenerator;

import java.io.*;
import java.util.UUID;

/**
 * @author liuchaoqun
 * @date 2022/8/2
 * @Description
 */
public class Main {
    private static final String QR_CODE_IMAGE_PATH = "D:/upload/lcq.jpg";


    public static void main(String[] args) {
        File file = new File(UUID.randomUUID() + ".jpg");
        try {
            OutputStream outputStream = new FileOutputStream(file.getAbsolutePath());
            new SimpleQrcodeGenerator().generate("lcq测试").toStream(outputStream);
            outputStream.close();

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
